package com.example.controller.request

import com.example.model.domain.User
import com.example.model.domain.UserProfile

/**
 *
 *
 * @author wangli
 * @date 2025-10-09
 */
data class UserRequest(
    val username: String,
    val password: String,
    val email: String,
    val userProfile: UserProfile
) {
    fun toUser(): User {
        return User(
            id = null,
            username = this.username,
            password = this.password,
            email = this.email,
            userProfile = this.userProfile
        )
    }
}
